package com.xsmart.oa.api.mall.mymenu;

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.mall.mymenu.UserMsgManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/api")
public class UserMsgManagerController {
    @Autowired
    UserMsgManagerService userMsgManagerService;

    @RequestMapping(value = "/v1/UserMsgManagerService/updateUserMsg", method = RequestMethod.POST)
    @ResponseBody
    public Object updateUserMsg(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
        return userMsgManagerService.updateUserMsg(requestBean);
    }


}
